$(document).ready(function () {
	var theme = 'ui-sunny';
	//var theme = 'arctic';

	$("#jqxNavigationBar").jqxNavigationBar({ width: 200, expandMode: 'multiple', expandedIndexes: [0], theme: theme });
	
	$("#contentPanel").jqxPanel({ width: '100%', height: '100%', theme: theme });
	
	var liElements = $("#jqxNavigationBar li");
	$.each(liElements, function (index, value) {
			$("#jqxNavigationBar li:eq(" + index + ")").click(function () {
				switch (index) {
					case 0:
						$.get("players.php", function (data) {
							$('#contentPanel').html(data);
							initPlayersGrid(theme);
						});
						break;
					case 1:
						$.get("phpinfo.php", function (data) {
							$('#contentPanel').html(data);
						});
						break;
					case 2:
						$.get("dartboard.php", function (data) {
							$('#contentPanel').html(data);
							init();
							initMousePointer();
						});
						break;
					case 3:
						$.get("301.php", function (data) {
							$('#contentPanel').html(data);
							init301(theme);
						});
						break;
				};
			});
		});
		
});
